﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AppManage.Infrastructure.Entity;
using AppManage.Infrastructure.Repository;

namespace AppManage.EntityFramework
{
    public class AppManageRepositoryBase<TEntity, TPrimaryKey> : RepositoryBase<SystemManageDbContext, TEntity, TPrimaryKey>, IRepository<TEntity, TPrimaryKey>
        where TEntity : class, IEntity<TPrimaryKey>
    {
        private static SystemManageDbContext context = new SystemManageDbContext();

        private static DbContextProvider<SystemManageDbContext> provider = new DbContextProvider<SystemManageDbContext>(context);

        public AppManageRepositoryBase()
            : base(provider)
        {

        }
    }
}
